﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using log4net;

namespace ConsoleApplication1._03_Service
{
    public class MainService
    {
        private static ILog _logger = LogManager.GetLogger(typeof(MainService));

        public void Start()
        {
            _logger.Info("MainService Start");
            QuartzSchedulerService.Init();
            QuartzSchedulerService.Start();
        }

        public void Stop()
        {
            _logger.Info("MainService Stop");
            QuartzSchedulerService.Stop();
        }
    }
}
